{include file="../application/admin/view/header.html"}
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
	<div class="alert kesn_prompt"></div>
</div>

	<button class="btn btn-info kesn_to" data-title="新增管理员" data-id="add_admin" data-url="/index.php/admin/user/add_admin">新增<span class="fui-plus btn-tip"></span></button>

	<form class="navbar-form navbar-right" action="index" role="search"  method="get">
	  <div class="form-group">
	    <div class="input-group input-group-rounded">
	      <input class="form-control" id="keyword" name="keyword" type="search" placeholder="请输入管理员名">
	      <span class="input-group-btn">
	        <button type="submit" class="btn kesn_search"><span class="fui-search"></span></button>
	      </span>
	    </div>
	  </div>
	</form>

</div><br/>
&nbsp;&nbsp;<br/>
<div></div>
<div class="row">
	<table class="table table-hover">
		<thead>
			<th>ID</th>
			<th>用户</th>
			<th>操作</th>
		</thead>
		<tbody>
		{volist name="lists" id="user"}
			<tr class="_item"> 
				<th scrope="row">{$user.id}</th>
				<td>{$user.user_name}</td>
				<td><div>
					<a href="#" class="btn btn-primary kesn_to btn-sm" data-id="edit_admin" data-title="编辑管理员" data-url="/index.php/admin/user/edit_admin?user_id={$user.id}">编辑<span class="fui-new btn-tip"></span></a>
					<a href="#" class="btn btn-danger kesn_del btn-sm" data-_id="{$user.id}" data-_name="{$user.user_name}">删除<span class="fui-cross btn-tip"></span></a>
				</div></td>
		
		</tr>
		{/volist}
	</tbody>
	{$page}
</div>	
</div>

{include file="../application/admin/view/footer.html"}
<script type="text/javascript">
//删除
$("._item").on('click','.kesn_del',function(){
	var _this = $(this);
	var _id = _this.attr('data-_id');
	var _name = _this.attr('data-_name');
	var _url = '/index.php/admin/user/del_admin';
	kesn_del(_id,_url,'您确实要删除'+_id+' : '+_name+' 吗？',_this);
});
</script>
</footer>
</body>
</html>